Hi

Thanks for this module, i am using this module with flashvideo, it works fine but i don't know how to show YouTube Thumbnails or other google etc, i set the API in my administration, with views i try to set the new video but nothing work, anyone can help or import his view code, or how to tutorial!!! i am using content template and i try to add code to the teaser page nothing work for me it just show the title no image! you can see a preview in my french website, the last video with youtube doesn't show a thumbnails image
http://www.biladi.ma/multimedia/video

Thanks

Comments

toma’s picture

anyhelp please !

aaron’s picture

If using views, in the 'Fields' section, you'll select the drop-down labeled 'Option' and select 'Image Thumbnail'.

If you want to theme your teasers, you can just go to admin/content/types, select your type, then click on the 'Display Fields' tab. From there select the 'Image Thumbnail' (or 'Video Preview' or whatever) under thumbnails.

From the contemplate module, I don't recall offhand how you would theme it -- there's a function call from the views module you'll need to call. If you still need it after this, just let me know, and I'll look it up.

I plan to write a tutorial (or maybe even make a video tutorial, which would be fitting) once the module has matured, which is fairly close now.

Aaron

toma’s picture

If you want to theme your teasers, you can just go to admin/content/types, select your type, then click on the 'Display Fields' tab. From there select the 'Image Thumbnail' (or 'Video Preview' or whatever) under thumbnails.

This is important to make this great module to work, thanks no it show fine in my website

Thanks a lot

mamasdiner’s picture

Thank you Aaron!
That did it for me after MUCH searching of the Drupal site.
Can't wait for the mature version and the tutorial.
Thanks again for all your work on this!

Heather
www.kidsrockproductions.com

aaron’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
rimma’s picture

I do exactly same but it does not work.
No idea, no tutorial, no...

rimma’s picture

BTW, it does not work for google embedded code, no matter com, it or ca.

MagicMatze’s picture

Status: Closed (fixed) » Patch (to be ported)

You have to change manualy these two files:
modules/video_cck/video_cck.module
modules/video_cck/providers/youtube.inc

In video_cck.module search for the function "theme_video_cck_thumbnail" and replace it with those:

function theme_video_cck_thumbnail($field, $item, $formatter, $node) {
  if ($item['value'] && $item['provider']) {
      $embed = $item['value'];
    $width = $field['widget']['thumbnail_width'] ? $field['widget']['thumbnail_width'] : variable_get('video_cck_default_thumbnail_width', VIDEO_CCK_DEFAULT_THUMBNAIL_WIDTH);
    $height = $field['widget']['thumbnail_height'] ? $field['widget']['thumbnail_height'] : variable_get('video_cck_default_thumbnail_height', VIDEO_CCK_DEFAULT_THUMBNAIL_HEIGHT);
    $thumbnail_url = video_cck_include_invoke($item['provider'], 'thumbnail', $field, $item, $formatter, $node, $width, $height, $embed);
    if ($thumbnail_url) {
      $output = l('<img src="' . $thumbnail_url . '" width="' . $width  . '" height="' . $height  . '" alt="' . t('See Video') . '" title="' . t('See Video') . '" />', 'node/' . $node->nid, array(), NULL, NULL, false, true);
    }
    else {
      $output .= l(t('See Video'), 'node/' . $node->nid);
    }
  }
  return $output;
}

In youtube.inc search for ideo_cck_youtube_thumbnail and change this to:

function video_cck_youtube_thumbnail($field, $item, $formatter, $node, $width, $height, $embed) {

  return 'http://img.youtube.com/vi/' . $embed .'/default.jpg';

}

Then it should look like: http://magicmatze.ma.funpic.de/pr/?q=videos

Have fun!

lukevr’s picture

THANKS!!

jasan’s picture

THANKS A LOT. YOU SAVED MY TIME!!

any ideas for other providers with thumbnails. I have Google and youtube got working, any other solution for other providers please?

Thanks in Advance

aaron’s picture

Status: Patch (to be ported) » Closed (won't fix)

Please, please, please, don't use this module anymore. For a couple of years now, it's been deprecated in favor of Embedded Media Field, and is no longer supported. If you switch to that module, all your data will be safely ported when upgrading.

nsputnik’s picture

I installed Embedded Media Field but in the module list it says "Please use FeedAPI and the Feed API Element Mapper instead of emimport, which has been deprecated for Drupal 6."

hemasree86’s picture

hello could you pls tell me how to show related videos in thumbnail same as in youtube for my drupal site...